package com.sxg.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sxg.entity.SxgAddressEntity;
import com.sxg.page.PageResult;
import com.sxg.query.SxgAddressQuery;
import com.sxg.utils.code.AjaxResult;
import com.sxg.vo.SxgAddressVO;
import com.sxg.vo.req.AddressSaveReqVo;

import java.util.List;

/**
 * 地址表
 *
 * @author 浪漫写尽歌谱 3298751420@qq.com
 * @since 1.0.0 2024-03-07
 */
public interface SxgAddressService extends IService<SxgAddressEntity> {

    PageResult<SxgAddressVO> page(SxgAddressQuery query);

    void save(AddressSaveReqVo vo);

    AjaxResult update(SxgAddressVO vo);

    AjaxResult delete(Long id);

    AjaxResult selectByIdList();

    AjaxResult setDefaultAddress(Long id);

    AjaxResult selectById(Long id);

    AjaxResult getDefaultAddress();
}